<template>
  <div class="number">
    <div class="nnumber">
      <div class="ntitle"><span>排</span><span>行</span><span>榜</span></div>
      <div class="nNumber">
        <div class="nbox">
          <img src="./../assets/number/number1.png" alt="" />
          <div class="nNick">
            <div class="name">崽崽</div>
            <div class="score">100分</div>
          </div>
        </div>
        <div class="nbox">
          <img src="./../assets/number/number2.png" alt="" />
          <div class="nNick">
            <div class="name">崽崽</div>
            <div class="score">99分</div>
          </div>
        </div>
        <div class="nbox">
          <img src="./../assets/number/number3.png" alt="" />
          <div class="nNick">
            <div class="name">崽崽</div>
            <div class="score">98分</div>
          </div>
        </div>
        <div class="nbox">
          <img src="./../assets/number/number.png" alt="" />
          <div class="nNick">
            <div class="name">崽崽</div>
            <div class="score">97分</div>
          </div>
        </div>
        <div class="nbox">
          <img src="./../assets/number/number.png" alt="" />
          <div class="nNick">
            <div class="name">崽崽</div>
            <div class="score">97分</div>
          </div>
        </div>
      </div>
      <div class="noNumber"  v-if="isNum == false">
        您的排名是<span>13</span>名
      </div>
      <div class="nsure"><router-link to="/">确定</router-link></div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
body,
html {
  width: 100%;
}
.number {
  background-color: rgba(0, 0, 0, 0.514) !important;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .nnumber {
    background-color: #fff;
    width: 300px;
    // height: 450px;
    z-index: 1000;
    position: relative;
    .ntitle {
      position: absolute;
      left: 50%;
      transform: translate(-50%);
      top: -30px;
      width: 100%;
      span {
        display: inline-block;
        // padding: 10px;
        width: 60px;
        height: 60px;
        line-height: 60px;
        text-align: center;
        font-size: 25px;
        background-color: #fff;
        border-radius: 50%;
      }
      :nth-child(1),
      :nth-child(3) {
        background-color: #000;
        color: white;
      }
    }
    .nNumber {
      padding: 30px 10px 0px;
      box-sizing: border-box;

      .nbox {
        line-height: 70px;
        display: flex;
        img {
          width: 50px;
          height: 50px;
          margin: 0 10px;
          display: block;
        }
        .nNick {
          width: 200px;
          font-size: 20px;
          display: flex;
          justify-content: space-between;
          .name {
            letter-spacing: 4px;
            color: rgb(215, 168, 124);
            font-size: 18px;
          }
          .score {
          }
        }
        &:nth-child(1) > .nNick > .name {
          color: rgb(244, 168, 50);
          font-size: 22px;
        }
        &:nth-child(2) > .nNick > .name {
          color: rgb(221, 221, 221);
          font-size: 22px;
        }
        &:nth-child(3) > .nNick > .name {
          color: rgb(219, 199, 174);
          font-size: 22px;
        }
      }
    }
  }
  .noNumber{
      padding: 0px 10px 20px;
     color: rgba(0, 0, 0, 0.562);
    letter-spacing: 5px;
     span{
         font-weight: bolder;
    color: tomato;
     }
  }
  .nsure{
      width: 100px;
      margin: 5px auto;
      background-color: #000;
      color: white;
      padding: 10px 20px;
      font-size: 17px;
      letter-spacing: 5px;
  }
}
</style>

<script>
export default {
  mounted() {
    document.querySelector(".number").style.height =
      window.screen.height + "px";
  },
  data() {
      return {
          isNum : false
      }
  },
};
</script>